home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Tutorial / Cookbook / makeall.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1995-06-12  |  238b  |  18 lines

  1. #!/bin/sh
  2.  
  3. # shell script for compiling all recipes
  4. # should be run after the program has been unarchived
  5. for i in *
  6. do
  7.     if [ -d $i ]
  8.     then
  9.         cd "$i"
  10.         if [ -f Makefile ]
  11.         then
  12.             echo "running make in " $i
  13.             make
  14.         fi
  15.         cd ..
  16.     fi
  17. done
  18.